// miniprogram/pages/projects/actual/teamWork/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    active: 0,
    showPro: 'block',
    pro: [
      {
        title: '项目整体UI设计',
        imgList: [
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/ui/1.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/ui/2.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/ui/3.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/ui/4.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/ui/5.png'
          }
        ]
      },
      {
        title: '项目亮眼功能点',
        imgList: [
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/1.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/2.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/3.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/4.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/5.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/6.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/7.png'
          },
          {
            img: 'cloud://lindada-pdajo.6c69-lindada-pdajo-1301550073/projects/actual/teamWork/fun/8.png'
          },
        ]
      }
    ],
    showDev: 'none',
    showExp: 'none',
  },
  onShow: function() {
    wx.hideHomeButton()
  },

  // 导航栏点击事件
  onChange(event) {
    const index = event.detail
    switch(index) {
      case 0: this.setData({
        active: index,
        showPro: 'block',
        showDev: 'none',
        showExp: 'none'
      }); break;
      case 1: this.setData({
        active: index,
        showPro: 'none',
        showDev: 'block',
        showExp: 'none'
      }); break;
      case 2: this.setData({
        active: index,
        showPro: 'none',
        showDev: 'none',
        showExp: 'block'
      }); break;
    }
  }
})